<?php

namespace backend\models;

use Yii;
use backend\models\Model;
/**
 * This is the model class for table "{{%seven_admin}}".
 *
 * @property integer $admin_id
 * @property string $admin_user
 * @property string $admin_pwd
 */
class AdminModel extends \yii\db\ActiveRecord
{

     public $verifyCode;
         
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%admin}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['admin_user', 'admin_pwd'], 'required'],
            [['admin_user'], 'string', 'max' => 45],
            [['admin_pwd'], 'string', 'max' => 100],
            ['verifyCode', 'required'],
            ['verifyCode', 'captcha','message' =>'','captchaAction'=>'adminlogin/captcha'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'admin_id' => 'Admin ID',
            'admin_user' => 'Admin User',
            'admin_pwd' => 'Admin Pwd',
        ];
    }
}
